<template>
	<view class="registration-popup">
		<view class="popup">
			<view class="popup-head">
				<text>Hi,{{name}}</text>
				<text class="popup-jp">金牌有效期30天</text>
				<image class="popup-head-jz" src="../../static/icon3/jz.png" mode=""></image>
				<image @click="closePopup()" class="popup-head-cc" src="../../static/icon3/cc.png" mode=""></image>
			</view>
			<view class="popup-title">
				<view class="common-equity">
					<text>普通用户权益</text>
				</view>
				<view class="common-equity common-equity-red">
					<image src="../../static/icon3/hg.png" mode=""></image>
					<text >金牌用户权益</text>
				</view>
			</view>
			<view class="popup-content">
				<view class="popup-content-left">
					<view class="content-left-item">
						<view class="circular"></view>
						<text>每日可报名{{ordinary}}个任务</text>
					</view>
					<view class="content-left-item">
						<view class="circular"></view>
						<text>推送2公里内的任务</text>
					</view>
					<view class="content-left-item">
						<view class="circular"></view>
						<text>定期提现免手续费</text>
					</view>
				</view>
				<view class="popup-content-right">
					<view class="content-right-item">
						<view class="circular"></view>
						<text>每日可报名{{goldmedal}}个任务</text>
					</view>
					<view class="content-right-item">
						<view class="circular"></view>
						<text>推送5公里内的任务</text>
					</view>
					<view class="content-right-item">
						<view class="circular"></view>
						<text>永久提现免费</text>
					</view>
					<view class="content-right-item">
						<view class="circular"></view>
						<text>专属金牌任务</text>
					</view>
					<view class="content-right-item">
						<view class="circular"></view>
						<text>任务工时补贴</text>
					</view>
				</view>
			</view>
			<view class="popup-bottom">
				<text class="upper-limit">当日报名次数已达上限！</text>
				<button @click="buyNow()">立即购买</button>
				<text class="open">开通金牌享受更多权益</text>
			</view>
			<image class="bg-bj" src="../../static/icon3/bg-bj.png" mode=""></image>
		</view>
	</view>
</template>

<script>

	export default{
		props: {
			name: {
				type: String
			},
			ordinary: {
				type: Number,
				default: 0
			},
			goldmedal: {
				type: Number,
				default: 0
			},
		},
		data(){
			return {
				isShowPay:false
			}
		},
		methods:{
			closePopup(){
				this.$emit("closePopup")
			},
			buyNow(){
				this.$emit("buyNow")
			}
		}
	}
</script>

<style lang="less" scoped>
	.registration-popup{
		position: fixed;
		z-index: 1000;
		top: 0;
		right: 0;
		left: 0;
		bottom: 0;
		background: rgba(0,0,0,.5);
		.popup{
			position: fixed;
			top: 278rpx;
			left: 60rpx;
			width: 630rpx;
			height: 882rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			.popup-head{
				display: flex;
				align-items: flex-start;
				position: relative;
				.popup-jp{
					position: absolute;
					top: 52rpx;
					font-size: 24rpx;
					color: #333333;
					font-weight: 100;
				}
				&>text{
					margin-top: 24rpx;
					width: 130rpx;
					margin-left: 48rpx;
					font-size: 28rpx;
					font-weight: 600;
					white-space:nowrap;
					color: #CFB063;
				}
				.popup-head-jz{
					margin-left: 250rpx;
					width: 90rpx;
					height: 114rpx;
				}
				.popup-head-cc{
					position: absolute;
					width: 26rpx;
					height: 26rpx;
					color: #CCCCCC;
					border-radius: 4rpx;
					margin-top: 30rpx;
					margin-left: 570rpx;
				}
			}
			.popup-title{
				display: flex;
				flex-direction: row;
				margin-top: 20rpx;
				.common-equity{
					width: 316rpx;
					height: 116rpx;
					background: #303244;
					font-size: 28rpx;
					font-weight: 600;
					color: #FFFFFF;
					display: flex;
					justify-content: center;
					align-items: center;
					&>image{
						width: 48rpx;
						height: 36rpx;
						padding-right: 8rpx;
					}
				}
				.common-equity-red{
					background: #EE2417;
				}
			}
			.popup-content{
				display: flex;
				height: 324rpx;
				margin-top: 44rpx;
				.popup-content-left{
					width: 316rpx;
					display: flex;
					flex-direction: column;
					border-right: 2rpx solid rgba(204,204,204,0.5);
					.content-left-item{
						display: flex;
						margin-bottom: 24rpx;
						margin-left: 30rpx;
						align-items: center;
						.circular{
							width: 16rpx;
							height: 16rpx;
							background: #303244;
							border-radius: 50%;
							margin-right: 30rpx;
						}
						&>text{
							width: 208rpx;
							height: 34rpx;
							font-size: 24rpx;
							color: #999999;
						}
					}
				
				}
				.popup-content-right{
					width: 316rpx;
					display: flex;
					flex-direction: column;
					.content-right-item{
						display: flex;
						margin-bottom: 24rpx;
						margin-left: 30rpx;
						align-items: center;
						.circular{
							width: 16rpx;
							height: 16rpx;
							background: #D0AF55;
							border-radius: 50%;
							margin-right: 30rpx;
						}
						&>text{
							width: 208rpx;
							height: 34rpx;
							font-size: 24rpx;
							color: #999999;
						}
					}
				}
			}
			.popup-bottom{
				display: flex;
				flex-direction: column;
				align-items: center;
				.upper-limit{
					margin-top: 40rpx;
					font-size: 24rpx;
					color: #333333;
					margin-bottom: 28rpx;
				}
				&>button{
					width: 522rpx;
					height: 92rpx;
					background: #EE2417;
					box-shadow: 0rpx 6rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
					border-radius: 50rpx;
					margin-bottom: 10rpx;
					font-size: 28rpx;
					font-weight: 600;
					line-height: 92rpx;
					color: #FFFFFF;
				}
				.open{
					font-size: 24rpx;
					color: #CCCCCC;
				}
			}
			.bg-bj{
				width: 230rpx;
				height: 352rpx;
				position: absolute;
				top: 332rpx;
				left: 400rpx;
			}
		}
	}
</style>
